import { defineStore } from 'pinia'
import { store } from '../index'
export const useQuestionStore = defineStore(`${import.meta.env.VITE_APP_PROJECT}:question`, {
  state: (): any => ({
    questionList: [] //当前题目列表
  }),
  getters: {
    getQuestionList(): any {
      return this.questionList
    }
  },
  actions: {
    setQuestionList(List: string[]) {
      this.questionList = List
    }
  },
  persist: true
})

export const useQuestionstoreWithOut = () => {
  return useQuestionStore(store)
}
